package com.jiantong.work.util;

/**
 * 数字类型对应的中文工具类
 */
public class ConversionUtil {

    /**
     * 获取养殖区域
     */
    public static String getArea(Integer i){
        String area = "";
        switch (i){
            case 1:
                area = "繁殖区";
                break;
            case 2:
                area = "保育区";
                break;
            case 3:
                area = "育肥区";
                break;
            default:
                break;
        }
        return area;
    }

    /**
     * 获取用药方式
     */
    public static String getMedicationMethod(Integer i){
        String medication = "";
        switch (i) {
            case 1:
                medication = "口服";
                break;
            case 2:
                medication = "皮下注射";
                break;
            case 3:
                medication = "肌肉注射";
                break;
            case 4:
                medication = "雾化";
                break;
            case 5:
                medication = "滴鼻";
                break;
            case 6:
                medication = "其它";
                break;
            default:
                break;
        }
        return medication;
    }

    /**
     * 获取畜种
     */
    public static String getAnimalType(Integer i){
        String animal = "";
        switch (i){
            case 1:
                animal = "猪";
                break;
            case 2:
                animal = "牛";
                break;
            case 3:
                animal = "羊";
                break;
            case 4:
                animal = "家禽";
                break;
            default:
                break;
        }
        return animal;
    }

    /**
     * 获取消毒方式
     */
    public static String getDisinfection(Integer i){
        String disinfection = "";
        switch (i){
            case 1:
                disinfection = "喷雾";
                break;
            case 2:
                disinfection = "其它";
                break;
            default:
                break;
        }
        return disinfection;
    }

    /**
     * 获取计重单位
     */
    public static String getWeightUtil(Integer i){
        String weightUtil = "";
        switch (i){
            case 1:
                weightUtil = "头";
                break;
            case 2:
                weightUtil = "只";
                break;
            case 3:
                weightUtil="羽";
                break;
            case 4:
                weightUtil="克";
                break;
            case 5:
                weightUtil="毫升";
                break;
            case 6:
                weightUtil="头份";
                break;
            case 7:
                weightUtil="kg";
                break;
            default:
                break;
        }
        return weightUtil;
    }

    /**
     * 获取饲料种类
     */
    public static String getFodderType(Integer i){
        String fodder = "";
        switch (i){
            case 1:
                fodder="猪饲料";
                break;
            case 3:
                fodder="鸡饲料";
                break;
            case 4:
                fodder="鸭饲料";
                break;
            case 2:
                fodder="羊饲料";
                break;
            case 99:
                fodder="其它";
                break;
            default:
                break;
        }
        return fodder;
    }

    /**
     * 获取食物种类
     */
    public static String getFeedType(Integer i){
        String feed = "";
        switch (i){
            case 1:
                feed = "玉米";
                break;
            case 2:
                feed = "豆粕";
                break;
            case 3:
                feed = "麸皮";
                break;
            case 4:
                feed = "鱼粉";
                break;
            case 5:
                feed = "其它";
                break;
            default:
                break;
        }
        return feed;
    }

    /**
     * 获取设施运行状态类型
     */
    public static String getRunStatus(Integer i){
        String runStatus = "";
        switch (i){
            case 0:
                runStatus = "正常";
                break;
            case 1:
                runStatus = "沼气工程设施故障";
                break;
            case 2:
                runStatus = "雨污分流设施故障";
                break;
            case 3:
                runStatus = "干湿分离设施故障";
                break;
            case 4:
                runStatus = "沼液利用设施故障";
                break;
            default:
                break;
        }
        return runStatus;
    }

    /**
     * 获取无害化处理方式
     */
    public static String getHandleType(Integer i){
        String handle = "";
        switch (i){
            case 1:
                handle = "集中处理";
                break;
            case 2:
                handle = "焚烧";
                break;
            case 3:
                handle = "化制";
                break;
            case 4:
                handle = "掩埋";
                break;
            case 5:
                handle = "发酵";
                break;
            case 6:
                handle = "其它";
                break;
            default:
                break;
        }
        return handle;
    }

    /**
     * 获取所有牲口的疫苗(疫苗)
     */
    public static String getVaccine(Integer i){
        String vaccine = "";
        switch (i){
            case 101:
                vaccine = "猪瘟";
                break;
            case 102:
                vaccine = "口蹄病";
                break;
            case 103:
                vaccine = "蓝耳病";
                break;
            case 104:
                vaccine = "伪狂犬病";
                break;
            case 105:
                vaccine = "细小病毒";
                break;
            case 106:
                vaccine = "副伤寒";
                break;
            case 107:
                vaccine = "大肠杆菌";
                break;
            case 108:
                vaccine = "传染性胃肠";
                break;
            case 109:
                vaccine = "乙型脑炎";
                break;
            case 110:
                vaccine = "猪丹毒";
                break;
            case 111:
                vaccine = "猪肺炎";
                break;
            case 112:
                vaccine = "圆环病毒";
                break;
            case 113:
                vaccine = "链球菌";
                break;
            case 201:
                vaccine = "羊口蹄疫";
                break;
            case 202:
                vaccine = "羊布病";
                break;
            case 203:
                vaccine = "羊小反刍兽疫";
                break;
            case 204:
                vaccine = "羊三联四防疫苗";
                break;
            case 205:
                vaccine = "羊痘";
                break;
            case 206:
                vaccine = "羊传染性胸膜肺炎";
                break;
            case 207:
                vaccine = "羊链球菌疫苗";
                break;
            case 301:
                vaccine = "牛口蹄疫";
                break;
            case 302:
                vaccine = "牛布病";
                break;
            case 401:
                vaccine = "禽流感";
                break;
            case 402:
                vaccine = "新城疫";
                break;
            case 403:
                vaccine = "新支二联苗";
                break;
            case 404:
                vaccine = "法氏囊";
                break;
            case 405:
                vaccine = "鸡痘";
                break;
            case 406:
                vaccine = "鸡减蛋综合症";
                break;
            case 999:
                vaccine = "其它";
                break;
            default:
                break;
        }
        return vaccine;
    }

    /**
     * 获取猪疫苗(疫苗)
     */
    public static String getPigVaccine(Integer i){
        String pigVaccine = "";
        switch (i){
            case 101:
                pigVaccine = "猪瘟";
                break;
            case 102:
                pigVaccine = "口蹄疫";
                break;
            case 103:
                pigVaccine = "蓝耳病";
                break;
            case 104:
                pigVaccine = "伪狂犬病";
                break;
            case 105:
                pigVaccine = "细小病毒";
                break;
            case 106:
                pigVaccine = "副伤寒";
                break;
            case 107:
                pigVaccine = "大肠杆菌";
                break;
            case 108:
                pigVaccine = "传染性胃肠";
                break;
            case 109:
                pigVaccine = "乙型脑炎";
                break;
            case 110:
                pigVaccine = "猪丹毒";
                break;
            case 111:
                pigVaccine = "猪肺炎";
                break;
            case 112:
                pigVaccine = "圆环病毒";
                break;
            case 113:
                pigVaccine = "链球菌";
                break;
            default:
                break;
        }
        return pigVaccine;
    }

    /**
     * 获取羊疫苗(疫苗)
     */
    public static String getSheepVaccine(Integer i){
        String sheepVaccine = "";
        switch (i){
            case 201:
                sheepVaccine = "羊口蹄疫";
                break;
            case 202:
                sheepVaccine = "羊布病";
                break;
            case 203:
                sheepVaccine = "羊小反刍兽疫";
                break;
            case 204:
                sheepVaccine = "羊三联四防疫苗";
                break;
            case 205:
                sheepVaccine = "羊痘";
                break;
            case 206:
                sheepVaccine = "羊传染性胸膜肺炎";
                break;
            case 207:
                sheepVaccine = "羊链球菌疫苗";
                break;
            default:
                break;
        }
        return sheepVaccine;
    }

    /**
     * 获取牛疫苗(疫苗)
     */
    public static String getBullVaccine(Integer i){
        String bullVaccine = null;
        switch (i){
            case 301:
                bullVaccine = "牛口蹄疫";
                break;
            case 302:
                bullVaccine = "牛布病";
                break;
            default:
                break;
        }
        return bullVaccine;
    }

    /**
     * 获取家禽疫苗(疫苗)
     */
    public static String getPoultryVaccine(Integer i){
        String poultryVaccine = "";
        switch (i){
            case 401:
                poultryVaccine = "禽流感";
                break;
            case 402:
                poultryVaccine = "新城疫";
                break;
            case 403:
                poultryVaccine = "新支二联苗";
                break;
            case 404:
                poultryVaccine = "法氏囊";
                break;
            case 405:
                poultryVaccine = "鸡痘";
                break;
            case 406:
                poultryVaccine = "鸡减蛋综合症";
                break;
            case 999:
                poultryVaccine = "其它";
                break;
            default:
                break;
        }
        return poultryVaccine;
    }

    /**
     * 获取检测项目(病种)
     */
    public static String getIllnessType(Integer i){
        String illness = "";
        switch (i){
            case 101:
                illness = "猪瘟";
                break;
            case 102:
                illness = "口蹄疫";
                break;
            case 103:
                illness = "蓝耳病";
                break;
            case 104:
                illness = "瘦肉精";
                break;
            case 301:
                illness = "羊血吸虫病";
                break;
            case 302:
                illness = "羊布病";
                break;
            case 303:
                illness = "羊小反刍兽疫";
                break;
            case 304:
                illness = "瘦肉精";
                break;
            case 201:
                illness = "牛血吸虫病";
                break;
            case 202:
                illness = "牛布病";
                break;
            case 203:
                illness = "瘦肉精";
                break;
            case 401:
                illness = "禽流感";
                break;
            case 402:
                illness = "新城疫";
                break;
            case 999:
                illness = "其它";
                break;
            default:
                break;
        }
        return illness;
    }

    /**
     * 获取羊的检测项目(病)
     */
    public static String getSheepIllness(Integer i){
        String sheepIllness = "";
        switch (i){
            case 301:
                sheepIllness = "羊血吸虫病";
                break;
            case 302:
                sheepIllness = "羊布病";
                break;
            case 303:
                sheepIllness = "羊小反刍兽疫";
                break;
            case 304:
                sheepIllness = "(羊)瘦肉精";
                break;
            default:
                break;
        }
        return sheepIllness;
    }

    /**
     * 获取猪的检测项目(病)
     */
    public static String getPigIllness(Integer i){
        String pigIllness = "";
        switch (i){
            case 101:
                pigIllness = "猪瘟";
                break;
            case 102:
                pigIllness = "口蹄疫";
                break;
            case 103:
                pigIllness = "蓝耳病";
                break;
            case 104:
                pigIllness = "(猪)瘦肉精";
                break;
            default:
                break;
        }
        return pigIllness;
    }

    /**
     * 获取牛的检测项目(病)
     */
    public static String getBullIllness(Integer i){
        String bullIllness = "";
        switch (i){
            case 201:
                bullIllness = "牛血吸虫病";
                break;
            case 202:
                bullIllness = "牛布病";
                break;
            case 203:
                bullIllness = "(牛)瘦肉精";
                break;
            default:
                break;
        }
        return bullIllness;
    }

    /**
     * 获取家禽的检测项目(病)
     */
    public static String getPoultryIllness(Integer i){
        String poultryIllness = "";
        switch (i){
            case 401:
                poultryIllness = "禽流感";
                break;
            case 402:
                poultryIllness = "新城疫";
                break;
            case 999:
                poultryIllness = "其它";
                break;
            default:
                break;
        }
        return poultryIllness;
    }

    /**
     * 获取死亡原因
     */
    public static String getDeathReason(Integer i){
        String deathReason = "";
        switch (i){
            case 1:
                deathReason = "病死";
                break;
            case 2:
                deathReason = "其它";
                break;
            default:
                break;
        }
        return deathReason;
    }
}
